<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>

<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <div data-th-replace="common/functionDepict"></div>
    <div>
        <div class="row">
            <!--第一步 开始-->
            <div class="pt10">
                <div class="col-sm-9">
                    <div class="ibox float-e-margins">
                        <div class="ibox-title">
                            <h5>填写基本信息</h5>
                        </div>
                        <div class="ibox-content clearfix pt10">
                            <div class="form-horizontal">
                                <form id="saveUserMemberFrom">
                                    <input type="hidden" name="id" th:value="${member['id']}"/>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 会员名称</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" name="memberName" th:value="${member['memberName']}" type="text">
                                            <span class="help-block m-b-none c-999">会员名称 限30个字以内</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                   <!-- <input hidden name="userMember.memberType" value="${userMember.memberType}" />-->
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"><i class="c-red">*</i> 会员售卖方式</label>
                                        <div class="col-sm-8">
                                            <div class="radio i-checks" id="proportionExp">
                                                <label th:if="${member['memberType']}==null or ${member['memberType']}==2"><input type="radio"  value="1" name="memberType"> <i></i> 可售卖</label>
                                                <label th:if="${member['memberType']}==null or ${member['memberType']}==''"><input type="radio" checked  value="2"  name="memberType"> <i></i> 不可售卖</label>
                                                <label th:if="${member}!=null and ${member['memberType']}==1"><input type="radio" checked value="1" name="memberType"> <i></i> 可售卖</label>
                                                <label th:if="${member}!=null and ${member['memberType']}==1"><input type="radio"   value="2"  name="memberType"> <i></i> 不可售卖</label>
                                                <label th:if="${member}!=null and ${member['memberType']}==2"><input type="radio" checked  value="2"  name="memberType"> <i></i> 不可售卖</label>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> <i class="c-red">*</i>  会员价格</label>
                                        <div class="col-sm-8">
                                            <div class="input-group m-b"><span class="input-group-addon"><i class="fa fa-cny"></i></span>
                                                <input class="form-control validate-data" maxlength="8" name="price" th:value="${member['price']}" type="text"> <span class="input-group-addon">.00</span>
                                            </div>
                                            <span class="help-block m-b-none c-999">  实销价，购买会员支付的金额，或消费满指定金额</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> <i class="c-red">*</i>  会员有效天数</label>
                                        <div class="col-sm-8">
                                            <div class="input-group m-b"><span class="input-group-addon"><i class="fa fa-clock-o"></i></span>
                                                <input class="form-control validate-data" maxlength="4" name="validDay" onkeyup="this.value=this.value.replace(/\D/g,'')" th:value="${member['validDay']}" type="text"> <span class="input-group-addon">天</span>
                                            </div>
                                            <span class="help-block m-b-none c-999">  购买会员或得到会员权限后的有效天数,最多1000天</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 会员商品KEY</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" name="productId" th:value="${member['productId']}" type="text">
                                            <span class="help-block m-b-none c-999">
                                                会员商品KEY，用于APP IOS系统会员商品内购使用
                                                <a class="ml10" target="_blank" href="https://help.apple.com/app-store-connect/#/devb57be10e7">[会员商品key详细说明]</a>
                                            </span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label text-right"> 会员描述</label>
                                        <div class="col-sm-8">
                                            <input class="form-control validate-data" name="depict" th:value="${member['depict']}" type="text">
                                            <span class="help-block m-b-none c-999"> 描述信息限30个字以内</span>
                                        </div>
                                    </div>
                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <div class="col-sm-10 col-sm-offset-2">
                                            <button class="btn btn-primary ml10" id="submitUserMember" type="button">保存</button>
                                            <button class="btn btn-white ml10" id="onBack" type="button">取消</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div data-th-replace="common/importantNotes"></div>
            </div>
            <!--第一步 结束-->
        </div>
    </div>
</div>
<div data-th-replace="layout/head-footer"></div>
<script type="text/javascript" th:src="@{{path}/admin/business/user/member/member_create.js?v={v}(path=${staticPath},v=${v})}"> </script>
</body>
</html>
